package player.miniplayer;

import java.awt.Panel;
import java.awt.peer.ComponentPeer;

public class VideoCanvaeM extends Panel{
	long wid=0;
	VideoCanvaeM(){
		super();
	}
	
	long getWid(){
		try {
			Class<?> cl;
			cl = Class.forName("sun.awt.windows.WComponentPeer");
			java.lang.reflect.Field f = cl.getDeclaredField("hwnd");
			f.setAccessible(true);
			ComponentPeer peer = getPeer();
			wid = f.getLong(peer);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return wid;
	}
}
